Skip to main content

resizeWindow

Defines the method used to change the window size updating the minimum/maximum sizes. 💡 This method is used for visual modal plugins only.

Syntax

expression.resizeWindow(width, height, minW, minH, maxW, maxH);

expression - A variable that represents a Plugin class.

Parameters

NameRequired/OptionalData typeDefaultDescription
widthRequirednumberThe window width.
heightRequirednumberThe window height.
minWRequirednumberThe window minimum width.
minHRequirednumberThe window minimum height.
maxWRequirednumberThe window maximum width.
maxHRequirednumberThe window maximum height.

Returns

This method doesn't return any data.

Example

window.Asc.plugin.init = function() {
this.resizeWindow(392, 147, 392, 147, 392, 147);
};